//
// Created by Arikes on 9/21/21.
//

#ifndef DESIGNERMODE_CONCRETECOMPONENT_H
#define DESIGNERMODE_CONCRETECOMPONENT_H

#include "Component.h"
#include <iostream>
namespace DecoratorMode
{
    class ConcreteComponent:public Component
    {
    public:
        ConcreteComponent()
        {
            std::cout<<"创建具体构件角色"<<std::endl;
        }

        virtual void operation()
        {
            std::cout<<"调用具体构件角色的方法operation()"<<std::endl;
        }
    };
}

#endif //DESIGNERMODE_CONCRETECOMPONENT_H
